package com.common.repository.judicialpersonal;

import com.common.entity.personal.BusinessJobExperienceEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-13 10:24 下午
 **/
public interface BusinessJobExperienceRepository extends JpaRepository<BusinessJobExperienceEntity, Long> {
    List<BusinessJobExperienceEntity> findByPersonalIdOrderByExperienceStartTimeAsc(Long personalId);

    List<BusinessJobExperienceEntity> findByPersonalIdOrderByExperienceStartTimeDesc(Long personalId);
}